/**
 * @author hAmmeRoL, created: 2008-7-10
 * SJTU
 */

package ui.client;

import java.io.Serializable;

/**
 * Class representing the presence of a friend in the buddy list. The presence
 * can tell whether a client is online, off-line, busy, away, etc.
 * 
 * @author hAmmeRoL
 * 
 */
public class UserPresence implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	// client status
	private Status status;
	private String userID;

	/**
	 * Construct a presence using the status and user id
	 * 
	 * @param userID
	 *            the user id
	 * @param status
	 *            the status
	 */
	public UserPresence(String userID, Status status) {
		this.userID = userID;
		this.status = status;
	}
	
	public UserPresence()
	{
		
	}

	/**
	 * Get the status of this presence
	 * 
	 * @return the status
	 */
	public Status getStatus() {
		return status;
	}

	/**
	 * Set the status of this presence
	 * 
	 * @param status
	 *            the new status
	 */
	public void setStatus(Status status) {
		this.status = status;
	}

	/**
	 * Get the user id
	 * @return the user id
	 */
	public String getUserID() {
		return userID;
	}

}
